package hc.bre.deci.tree

import com.fasterxml.jackson.annotation.JsonInclude

import hc.bre.cmn.TreeOption
import hc.bre.cmn.TreeReferItem

@groovy.transform.CompileStatic
@groovy.transform.ToString(includeNames=true,includePackage=false)
//@JsonInclude(JsonInclude.Include.NON_EMPTY) impact the reactive of VUE
class TreeBranchItem extends TreeReferItem<TreeBranchItem>{
	/*
	 * referId		:refer to case(classification option name) id
	 * referName	:refer to case name
	 * rpath			:refer to another classification rule pathid
	 * rname		:relative content to the rid
	 */
	String rpath;
	String rname;

	//the content valueMap from user key-in
	//list and valueMap don't exist on the same time.
	Map  valueMap = [:];

	@Override
	public TreeBranchItem load(Map map) {
		super.load(map);
		
//		rid = map['rid'];
		rpath = map['rpath'];
		rname = map['rname'];
		valueMap = map['valueMap']

		return this;
	}


}
